package com.isoftstone.project.system.mapper;


import com.isoftstone.framework.domain.Page;
import com.isoftstone.project.system.domain.SysDepartment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysDepartmentMapper {

    public void saveDept(SysDepartment department)throws Exception;

    public void updateDept(SysDepartment department)throws Exception;

    List<SysDepartment> getSysDeptlistPage(Page page) throws Exception;

    SysDepartment getDeptById(String deptId) throws Exception;

    List<SysDepartment> getDeptByName(String deptName) throws Exception;

    void deleteDept(String deptId)throws Exception;

    List<SysDepartment> getDeptAll(@Param("deptId")String deptId)throws Exception;



    List<SysDepartment> getDeptByparentId(String parentId) throws  Exception;
    List<String> getDeptIdByparentId(String deptId) throws  Exception;

    List<String> getDeptUids(@Param("deptIds") List<String> deptIds) throws  Exception;

    List<Map<String,Object>> getRestDeptlistPage(Page page);

}
